package com.example.d3.character.compare;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

import com.androidquery.AQuery;

public class AccountSelectionActivity extends Activity {
	public final static String battletag_name = "com.example.d3.character.compare.battletag_name";
	public final static String battletag_code = "com.example.d3.character.compare.battletag_code";
	private AQuery aq;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.account_selection);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    /** Called when the user clicks the Send button */
    public void accountLogin(View view){
    	aq = new AQuery(this);
    	
    	Intent intent = new Intent(this, CharacterSelectionActivity.class);

    	String btName = aq.id(R.id.battletag_name).getText().toString();
    	String btCode = aq.id(R.id.battletag_code).getText().toString();
    	intent.putExtra(battletag_name, btName);
    	intent.putExtra(battletag_code, btCode);
    	
    	startActivity(intent);
    }

    
}
